import BaseApi from "../base.api";

export class WorkshopGraphDataApi extends BaseApi {
  protected baseUri = "/backend/workshop/workshop-graph-datas";

  save(data?: any) {
    return this.request.post(`${this.baseUri}`, data);
  }

  queryById(id:any){
    return this.request.get(`${this.baseUri}/${id}`);
  }

  updateById(data:any){
    return this.request.put(`${this.baseUri}`, data);
  }

  queryWorkshopGraphData(workshopElementsInstanceId:any){
    return this.request.get(`${this.baseUri}/workshop-graph-data/${workshopElementsInstanceId}`)
  }
}
